﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace MoMoTransferVN_WP.page
{
    public partial class RegisterPinPage : PhoneApplicationPage
    {
        public RegisterPinPage()
        {
            InitializeComponent();
        }

        private void txtName_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
        {
            txtName.SelectAll();
        }

        private void txtName_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
        {
            if(txtName.Text.Length==0)
            {
                txtName.Text = "Họ và tên";
            }
        }

        private void txtCmnd_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
        {
            txtCmnd.SelectAll();
        }

        private void txtCmnd_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
        {
            if(txtCmnd.Text.Length==0)
            {
                txtCmnd.Text = "CMND / Hộ chiếu / Bằng lái";
            }
        }

        private void txtEmail_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
        {
            txtEmail.SelectAll();
        }

        private void txtEmail_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
        {
            if(txtEmail.Text.Length==0)
            {
                txtEmail.Text = "Địa chỉ email";
            }
        }

        private void txtNguoigioithieu_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
        {
            txtNguoigioithieu.SelectAll();
        }

        private void txtNguoigioithieu_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
        {
            if(txtNguoigioithieu.Text.Length==0)
            {
                txtNguoigioithieu.Text = "Số người giới thiệu (nếu có)";
            }
        }
    }
}